package com.zy.xuanwo.fragment;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.zy.xuanwo.R;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * @功能 关于
 * Created by Anjb on 2016/7/3.
 */
public class AboutFragment extends Fragment {
    @Bind(R.id.logo_iv)
    ImageView logoIv;
    @Bind(R.id.software_name_tv)
    TextView softwareNameTv;
    @Bind(R.id.software_version)
    TextView softwareVersion;
    @Bind(R.id.erweima_iv)
    ImageView erweimaIv;
    private View mRootView;
    private Context mContext;

    @Override
    public void onAttach(Activity activity) {
        super.onAttach(activity);
        mContext = activity;
    }

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
           if(mRootView == null) {
               mRootView = inflater.inflate(R.layout.fragment_about_us, null);
           }
        ViewGroup parent = (ViewGroup) mRootView.getParent();
        if(parent != null){
            parent.removeView(mRootView);
        }
        ButterKnife.bind(this, mRootView);
        return mRootView;
    }
    @Override
    public void onResume() {
        super.onResume();
    }

    public void onPause() {
        super.onPause();
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
    }



    @Override
    public void onDestroyView() {
        super.onDestroyView();
        ButterKnife.unbind(this);
    }
}
